import{j as t}from"./vendor-BTunnNwh.js";import{u as g,U as r}from"./index-DzCib9fG.js";const i="_wrg_toggle_1cl59_1",a="_wrg_toggle_container_1cl59_16",d="_wrg_toggle_circle_1cl59_25",w="_wrg_toggle_input_1cl59_38",m="_wrg_toggle__checked_1cl59_49",o={wrg_toggle:i,wrg_toggle_container:a,wrg_toggle_circle:d,wrg_toggle_input:w,wrg_toggle__checked:m},B=({toggle:e,handleToggle:n})=>{const{userInfo:s}=g();return t.jsxs("div",{onClick:c=>{s?.user_role!==r.reader&&n(c)},className:e?`${o.wrg_toggle} ${o.wrg_toggle__checked}`:o.wrg_toggle,children:[t.jsx("div",{className:o.wrg_toggle_container}),t.jsx("div",{className:o.wrg_toggle_circle}),t.jsx("input",{type:"checkbox",className:o.wrg_toggle_input,name:"enableLink",defaultChecked:e})]})};function u(e,n,s){return[e,...s,...Object.entries(n).filter(([c,l])=>!!l).map(([c])=>c)].join(" ")}const h="_button_1gbj6_1",x={button:h},C=({className:e,icon:n,...s})=>t.jsx("button",{className:u(x.button,{},[e]),...s,children:n()}),b="_main_19nw4_1",j="_selected_main_19nw4_12",p="_body_19nw4_24",f="_selected_body_19nw4_37",_={main:b,selected_main:j,body:p,selected_body:f},k=({cviya:e,selectedCVIYA:n,setSelectedCVIYA:s})=>{const c=l=>{s(e)};return t.jsx("div",{className:`${e===n?_.selected_main:_.main}`,onClick:c,children:t.jsxs("div",{className:`${e===n?_.selected_body:_.body}`,children:[e,e===n?t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"7",height:"8",viewBox:"0 0 7 8",fill:"none",children:t.jsx("circle",{cx:"3.5",cy:"4",r:"3.5",fill:"var(--brig-accent)"})}):t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"7",height:"8",viewBox:"0 0 7 8",fill:"none",children:t.jsx("circle",{cx:"3.5",cy:"4",r:"3.5",fill:"var(--pres-accent)"})})]})})},y="_main_s1i81_1",v={main:y},I=({selectedCVIYA:e,setSelectedCVIYA:n,listCVIYA:s})=>t.jsx("div",{className:v.main,children:s.map(c=>t.jsx(k,{cviya:c,selectedCVIYA:e,setSelectedCVIYA:n},c))});export{B,I as L,C as a};
//# sourceMappingURL=index-peqEu9Ec.js.map
